﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Rison.DataAccess.Data.ZJCP;

namespace Rison.Web.report
{
    public partial class index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string[] title = { "长宁区各部门网站管理与组织机构情况",
                             "长宁区各部门网站管理与组织机构情况2",
                             "",
                             "部门制度规范情况",
                             "",

                             "部门网站新闻信息发布情况",
                             "",
                             "部门新闻信息报送及录取情况",
                             "部门专题建设与报送情况",
                             "部门信息公开目录确认完成情况",

                             "","","","","",

                             "企事业单位确认情况",
                             "长宁区政府部门信息公开发布情况统计",
                             "",
                             "长宁区政府信息申请公开受理情况",
                             "",

                             "2011年部门确认政府行政许可事项清单",
                             "网上行政审批事项受理情况",
                             "","","",

                             "各部门网上咨询受理情况",
                             "",
                             "部门便民问答、典型案例上报情况",
                             "部门网上信访（领导信箱）受理情况","",
                             
                             "","",
                             "部门2011年内开展网上公众参与活动情况",
                             "","",

                             "","","","","",
                             
                             "","",
                             "部门网站域名规范性情况"};
            string strN = Request.Params["n"];
            if(String.IsNullOrEmpty(strN)){
                    strN = "1";
            }
      
            int n = Int32.Parse(strN);
            Title = title[n - 1];
            Label2.Text = title[n - 1];

            if (n == 26)
            {
                Response.Redirect("report26.html");
                return;
            }
            if (n == 29)
            {
                Response.Redirect("report29.html");
                return;
            }
            string sql = String.Format("select * from v_report{0} v",n);
            DataSet ds = DbAccess.executeQuery(sql);
            GridView1.DataSource = ds;
            GridView1.DataBind();

        }
    }
}
